package com.cubeofnine.sugar;

import android.content.Context;
import android.util.Log;

public class PreparingSwitchingRunnable implements Runnable {

	public Context context = null;

	public PreparingSwitchingRunnable(Context context) {
		super();
		this.context = context;
	}

	public String getClassName() {
		return PreparingSwitchingRunnable.class.getName();
	}

	public void run() {
		Log.i(getClassName(), "run() : Start");

		try {
			((FirstScreenActivity) context).gotoLoginActivity();
		} catch (Exception e) {
			Log.e(getClassName(), "Error", e);
		}

		Log.i(getClassName(), "run() : End");
	}

}
